package edu.uj.petri.document;

import edu.uj.petri.gui.MainWindowInterface;

class DesignMode extends ConcreteMode {
    
    public DesignMode() {
    }

    /**
     * disables simulation buttons, enables design buttons, deactivates all 
     *    transitions, restores initial marking
     */
    public void applyTo(MainWindowInterface window, Document document) {
        window.setSimulationButtonsEnabled(false);
        window.setDesignButtonsEnabled(true);
        window.setCommandStack(commandStack);
    }

    /**
     * this method is called when this document mode is switched away and
     * another mode is set instead
     */
    public void finish(MainWindowInterface window, Document document) {
    }
    

}
